<template>
    <div>
        <!--轮播图-->
        <mt-swipe :auto="4000">
            <!--将来谁使用谁就传递-->
            <mt-swipe-item v-for="item in bannerList" :key="item.id">
                <img :src="item.img" :class="{'width':bol}">
            </mt-swipe-item>
        </mt-swipe>
    </div>
</template>

<script>
    export default {
        name: "swipe",
        props:['bannerList','bol'],
    }
</script>

<style scoped lang="less">
    .width{
        width: 100%;
    }
    .mint-swipe{
        height: 200px;
        .mint-swipe-item{
            /*background-color: pink;*/
            text-align: center;
            img{
                /*width: 100%;*/
                height: 100%;
            }
        }
    }
</style>